import { useState } from "react"
import axios from "axios"
export default function useShowDog() {
  const [dogUrl, setDogUrl] = useState("")
  const showDog = async () => {
    const result = await axios.get(`https://dog.ceo/api/breeds/image/random`)
    setDogUrl(result.data.message)
  }
  return { dogUrl, setDogUrl, showDog }
}
